<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Bakalarka: Zdrojový soubor src/transformation.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generováno programem Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Hlavní&nbsp;stránka</span></a></li>
      <li><a href="annotated.html"><span>Třídy</span></a></li>
      <li class="current"><a href="files.html"><span>Soubory</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Seznam&nbsp;souborů</span></a></li>
    </ul>
  </div>
<h1>src/transformation.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> *      This program is free software; you can redistribute it and/or modify</span>
<a name="l00003"></a>00003 <span class="comment"> *      it under the terms of the GNU General Public License as published by</span>
<a name="l00004"></a>00004 <span class="comment"> *      the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00005"></a>00005 <span class="comment"> *      (at your option) any later version.</span>
<a name="l00006"></a>00006 <span class="comment"> *      </span>
<a name="l00007"></a>00007 <span class="comment"> *      This program is distributed in the hope that it will be useful,</span>
<a name="l00008"></a>00008 <span class="comment"> *      but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00009"></a>00009 <span class="comment"> *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00010"></a>00010 <span class="comment"> *      GNU General Public License for more details.</span>
<a name="l00011"></a>00011 <span class="comment"> *      </span>
<a name="l00012"></a>00012 <span class="comment"> *      You should have received a copy of the GNU General Public License</span>
<a name="l00013"></a>00013 <span class="comment"> *      along with this program; if not, write to the Free Software</span>
<a name="l00014"></a>00014 <span class="comment"> *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,</span>
<a name="l00015"></a>00015 <span class="comment"> *      MA 02110-1301, USA.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _TRANSFORMATION_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _TRANSFORMATION_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#include "gType.h"</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#define OUTPUT_PRECISION 3</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#define ERROR_LINE_COUNT        "You can not do a tool transformation for one point."</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define ERROR_LINE_MET          "The line and circle don't have a common intersect."</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define ERROR_CIRCLES_MET       "Circles don't have a common intersect."</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define ERROR_EXCEED            "Capabilities of the tool transformation were exceed."</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#define ASSIGN_VECTOR(a, b) ({ \</span>
<a name="l00040"></a>00040 <span class="preprocessor">        (a)[0] = (b)[0]; \</span>
<a name="l00041"></a>00041 <span class="preprocessor">        (a)[1] = (b)[1]; \</span>
<a name="l00042"></a>00042 <span class="preprocessor">        })</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#define LINEAR_INTERPOL(O, P, q, t) ({ \</span>
<a name="l00045"></a>00045 <span class="preprocessor">        (O)[0] = (P)[0] + (q)[0] * t; \</span>
<a name="l00046"></a>00046 <span class="preprocessor">        (O)[1] = (P)[1] + (q)[1] * t; \</span>
<a name="l00047"></a>00047 <span class="preprocessor">        })</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>        
<a name="l00049"></a>00049 <span class="preprocessor">#define LINEAR_NORMAL_INTERPOL(O, P, q, t) ({ \</span>
<a name="l00050"></a>00050 <span class="preprocessor">        (O)[0] = (P)[0] - (q)[1] * t; \</span>
<a name="l00051"></a>00051 <span class="preprocessor">        (O)[1] = (P)[1] + (q)[0] * t; \</span>
<a name="l00052"></a>00052 <span class="preprocessor">        })</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 <span class="preprocessor">#define COMPARE(g0, g1) ( \</span>
<a name="l00055"></a>00055 <span class="preprocessor">        (g0)[0] - GAP &lt; (g1)[0] &amp;&amp; (g0)[0] + GAP &gt; (g1)[0] &amp;&amp; \</span>
<a name="l00056"></a>00056 <span class="preprocessor">        (g0)[1] - GAP &lt; (g1)[1] &amp;&amp; (g0)[1] + GAP &gt; (g1)[1] \</span>
<a name="l00057"></a>00057 <span class="preprocessor">        )</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#define DISTANCE(p0, p1) ( \</span>
<a name="l00060"></a>00060 <span class="preprocessor">        sqrt(((p1)[0] - (p0)[0]) * ((p1)[0] - (p0)[0]) + \</span>
<a name="l00061"></a>00061 <span class="preprocessor">                ((p1)[1] - (p0)[1]) * ((p1)[1] - (p0)[1])) \</span>
<a name="l00062"></a>00062 <span class="preprocessor">        )</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00065"></a>00065 
<a name="l00068"></a><a class="code" href="classmatrix.html">00068</a> <span class="keyword">class </span><a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a>{
<a name="l00069"></a>00069 
<a name="l00070"></a>00070         <span class="keyword">private</span>:
<a name="l00072"></a>00072                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> INITIAL_VALUE = 0.0;
<a name="l00073"></a>00073         
<a name="l00075"></a>00075                 <span class="keywordtype">float</span> **M;
<a name="l00077"></a>00077                 <span class="keywordtype">unsigned</span> len;
<a name="l00078"></a>00078         
<a name="l00079"></a>00079         <span class="keyword">public</span>:
<a name="l00081"></a>00081 
<a name="l00088"></a>00088                 <a class="code" href="classmatrix.html#c9bc8f10d83fc15aa49efb59e04c1603" title="Konstrukor čtvercové matice.">matrix</a>(<span class="keywordtype">unsigned</span>);
<a name="l00090"></a>00090 
<a name="l00093"></a>00093                 <a class="code" href="classmatrix.html#c9bc8f10d83fc15aa49efb59e04c1603" title="Konstrukor čtvercové matice.">matrix</a>(<a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;);
<a name="l00095"></a>00095 
<a name="l00098"></a>00098                 <a class="code" href="classmatrix.html#8a2522496ff0ef7096ffcfdc851b85a1" title="Destruktor.">~matrix</a>();
<a name="l00099"></a>00099                 
<a name="l00101"></a>00101                 <a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;<a class="code" href="classmatrix.html#a7db80ce6e47ec2467a9bda0ee1ab7fe" title="Transponuje matici.">transposed</a>();
<a name="l00103"></a>00103 
<a name="l00107"></a>00107                 <a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;<a class="code" href="classmatrix.html#61982a2544950f7e49b4b764420a6196" title="Vynásobí matici maticí.">multiply</a>(<a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;);
<a name="l00109"></a>00109                 <a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;<a class="code" href="classmatrix.html#b0cbdbaab986a53c42484289e46ad381" title="Vytvoří kopii.">operator=</a>(<a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;);
<a name="l00111"></a>00111 
<a name="l00117"></a>00117                 <span class="keywordtype">float</span> *<a class="code" href="classmatrix.html#b9436aa6c501e83dbb0b5e50e9914393" title="Vrací řádek matice.">operator[]</a>(<span class="keywordtype">unsigned</span>);
<a name="l00119"></a>00119                 <span class="keywordtype">unsigned</span> <a class="code" href="classmatrix.html#592081278be307bdc813332cf4e871f3" title="Počet řádků nebo sloupců matice.">getLen</a>();
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 };
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, <a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a> &amp;);
<a name="l00125"></a>00125 
<a name="l00127"></a>00127 
<a name="l00132"></a><a class="code" href="classtransformation.html">00132</a> <span class="keyword">class </span><a class="code" href="classtransformation.html" title="Rozšiřuje zakladní matici o transformace.">transformation</a>: <span class="keyword">public</span> <a class="code" href="classmatrix.html" title="Základní třída matice.">matrix</a>{
<a name="l00133"></a>00133         
<a name="l00134"></a>00134         <span class="keyword">private</span>:
<a name="l00136"></a>00136                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> DIMENSION = 2;
<a name="l00138"></a>00138                 <span class="keywordtype">float</span> *multiplyVector(<span class="keywordtype">float</span> *);
<a name="l00139"></a>00139                 
<a name="l00140"></a>00140         <span class="keyword">protected</span>:
<a name="l00142"></a>00142                 <a class="code" href="classgTypeGo.html" title="Typ linearní interpolace.">gTypeGo</a> &amp;<a class="code" href="classtransformation.html#c4c85ee4985f3683130f0813cecbaadb" title="Aplikace tranformační matice na gTypeGo.">multiplyGTypeGo</a>(<a class="code" href="classgTypeGo.html" title="Typ linearní interpolace.">gTypeGo</a> &amp;go);
<a name="l00143"></a>00143                 
<a name="l00144"></a>00144         <span class="keyword">public</span>:
<a name="l00146"></a>00146 
<a name="l00149"></a>00149                 <a class="code" href="classtransformation.html#c4a43922868f23111939aa8ec9338b1a" title="Kontruktor transformační matice.">transformation</a>();
<a name="l00151"></a>00151 
<a name="l00156"></a>00156                 <a class="code" href="classtransformation.html" title="Rozšiřuje zakladní matici o transformace.">transformation</a> &amp;<a class="code" href="classtransformation.html#4105a060426a6d3619ee92b935893502" title="Translace.">translation</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>);
<a name="l00158"></a>00158 
<a name="l00164"></a>00164                 <a class="code" href="classtransformation.html" title="Rozšiřuje zakladní matici o transformace.">transformation</a> &amp;<a class="code" href="classtransformation.html#657f8f7a57c7aff12a583948c16f3260" title="Rotace.">rotation</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>);
<a name="l00166"></a>00166 
<a name="l00173"></a>00173                 <a class="code" href="classtransformation.html" title="Rozšiřuje zakladní matici o transformace.">transformation</a> &amp;<a class="code" href="classtransformation.html#6d0b3c1eb0ca69a90b561ca2ed18a627" title="Scaling.">scaling</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>);
<a name="l00175"></a>00175                 <span class="keywordtype">void</span> <a class="code" href="classtransformation.html#af730e78e1a51221324b4e4196ffa689" title="Nastaví jednotkovou matici.">clear</a>();
<a name="l00176"></a>00176                 
<a name="l00178"></a>00178                 <a class="code" href="classgObject.html" title="Kontejner pro instrukce.">gObject</a> &amp;<a class="code" href="classtransformation.html#bac3bbe07b8158f104fb1046de3e4321" title="Aplikuje transformační matici na blok dat.">apply</a>(<a class="code" href="classgObject.html" title="Kontejner pro instrukce.">gObject</a> &amp;);
<a name="l00180"></a>00180                 <a class="code" href="classgObjectContainer.html" title="Kontejner bloků.">gObjectContainer</a> &amp;<a class="code" href="classtransformation.html#bac3bbe07b8158f104fb1046de3e4321" title="Aplikuje transformační matici na blok dat.">apply</a>(<a class="code" href="classgObjectContainer.html" title="Kontejner bloků.">gObjectContainer</a> &amp;);
<a name="l00181"></a>00181                         
<a name="l00182"></a>00182                 
<a name="l00183"></a>00183 };
<a name="l00184"></a>00184 
<a name="l00186"></a>00186 
<a name="l00197"></a><a class="code" href="classtoolTransformation.html">00197</a> <span class="keyword">class </span><a class="code" href="classtoolTransformation.html" title="Transformace nástroje.">toolTransformation</a>{
<a name="l00198"></a>00198         
<a name="l00200"></a>00200 
<a name="l00207"></a>00207         <span class="keyword">public</span>:
<a name="l00208"></a><a class="code" href="classtoolTransformation_1_1algorithmError.html">00208</a>                 <span class="keyword">class </span><a class="code" href="classtoolTransformation_1_1algorithmError.html" title="Vyjímka vyhozená při transformaci.">algorithmError</a>: <span class="keyword">public</span> std::exception{
<a name="l00209"></a>00209         
<a name="l00210"></a>00210                         <span class="keyword">private</span>:
<a name="l00212"></a>00212                                 <span class="keywordtype">char</span> *report;
<a name="l00213"></a>00213                                 
<a name="l00214"></a>00214                         <span class="keyword">public</span>:
<a name="l00215"></a>00215                                 <a class="code" href="classtoolTransformation_1_1algorithmError.html" title="Vyjímka vyhozená při transformaci.">algorithmError</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) <span class="keywordflow">throw</span>();
<a name="l00216"></a>00216                                 ~<a class="code" href="classtoolTransformation_1_1algorithmError.html" title="Vyjímka vyhozená při transformaci.">algorithmError</a>() <span class="keywordflow">throw</span>();
<a name="l00217"></a>00217                                 
<a name="l00218"></a>00218                                 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *what() <span class="keyword">const</span> <span class="keywordflow">throw</span>();
<a name="l00219"></a>00219 
<a name="l00220"></a>00220                 };
<a name="l00221"></a>00221         
<a name="l00222"></a>00222         <span class="keyword">private</span>:
<a name="l00224"></a>00224                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> GAP = 0.001;
<a name="l00226"></a>00226                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> MAGICAL_NUMBER = -0.05;
<a name="l00227"></a>00227                 
<a name="l00229"></a>00229                 <span class="keywordtype">float</span> toolRadius;
<a name="l00231"></a>00231                 <span class="keywordtype">float</span> depth;
<a name="l00233"></a>00233                 <span class="keywordtype">bool</span> flag;
<a name="l00234"></a>00234                 <span class="keywordtype">bool</span> commonPoint;
<a name="l00235"></a>00235                 
<a name="l00236"></a>00236                 <span class="keywordtype">float</span> m[2], n[2];
<a name="l00237"></a>00237                 <a class="code" href="classgTypeGo.html" title="Typ linearní interpolace.">gTypeGo</a> *goPrev, *go, *goNext;
<a name="l00238"></a>00238                 std::vector&lt;gTypeGo *&gt; overlooked;
<a name="l00239"></a>00239                 
<a name="l00240"></a>00240                 <span class="keywordtype">void</span> setGo() throw(<a class="code" href="classtoolTransformation_1_1algorithmError.html" title="Vyjímka vyhozená při transformaci.">algorithmError</a>);
<a name="l00241"></a>00241                 <span class="keywordtype">void</span> goLinearLinear();
<a name="l00242"></a>00242                 <span class="keywordtype">void</span> goLinearArc() throw(algorithmError);
<a name="l00243"></a>00243                 <span class="keywordtype">void</span> goArcLinear() throw(algorithmError);
<a name="l00244"></a>00244                 <span class="keywordtype">void</span> goArcArc() throw(algorithmError);
<a name="l00245"></a>00245                 <span class="keywordtype">bool</span> nearPoint(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00246"></a>00246                 <span class="keywordtype">bool</span> suitPoint(<a class="code" href="classgTypeGo.html" title="Typ linearní interpolace.">gTypeGo</a> &amp;, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00247"></a>00247                 <span class="keywordtype">bool</span> getNext(<a class="code" href="classgObject.html" title="Kontejner pro instrukce.">gObject</a> &amp;, gObject::iterator &amp;iter);
<a name="l00248"></a>00248                 <span class="keywordtype">void</span> setOverlooked();
<a name="l00249"></a>00249                 <span class="keywordtype">float</span> getRadius(gTypeGo &amp;, <span class="keywordtype">float</span> *);
<a name="l00250"></a>00250                 <span class="keywordtype">void</span> setZ(gTypeGo &amp;);
<a name="l00251"></a>00251                 <span class="keywordtype">void</span> makeCommonPoint(gObject &amp;<span class="keywordtype">object</span>) throw(algorithmError);
<a name="l00252"></a>00252                 <span class="keywordtype">bool</span> isCommonPoint(gObject &amp;) const;
<a name="l00253"></a>00253         
<a name="l00254"></a>00254         public:
<a name="l00256"></a>00256 
<a name="l00267"></a>00267                 static <span class="keywordtype">float</span> <a class="code" href="classtoolTransformation.html#fb85c3d61b1d975f6e029a7c992f5d4f" title="Průnik přímky a přímky.">lineIntersect</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00269"></a>00269 
<a name="l00275"></a>00275                 static <span class="keywordtype">bool</span> <a class="code" href="classtoolTransformation.html#d03b62dd8fbef0e6ae07c29eb370d841" title="Linearní závislost dvou vektorů.">isLinearlyIndependent</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00277"></a>00277 
<a name="l00288"></a>00288                 static <span class="keywordtype">int</span> <a class="code" href="classtoolTransformation.html#845db84d740e747a6f4bf5a8b6f98b1a" title="Řešení kvadratické rovnice.">quadraticEquation</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>, <span class="keywordtype">float</span>, <span class="keywordtype">float</span> *);
<a name="l00290"></a>00290 
<a name="l00302"></a>00302                 static <span class="keywordtype">int</span> <a class="code" href="classtoolTransformation.html#de4d1ea0ef382ae83e4caaaf0b1d19b5" title="Průnik přímky a kružnice.">lineArcIntersect</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span>, <span class="keywordtype">float</span> *);
<a name="l00304"></a>00304 
<a name="l00316"></a>00316                 static <span class="keywordtype">int</span> <a class="code" href="classtoolTransformation.html#e7f49a52a1b825763a0d025f8b9e1469" title="Průnik kružnice a kružnice.">arcIntersect</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span>, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span>, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00318"></a>00318 
<a name="l00325"></a>00325                 static <span class="keywordtype">float</span> <a class="code" href="classtoolTransformation.html#c907043f371675a643eeb08cf8fab487" title="Úhel vektorů.">arcAngle</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00327"></a>00327 
<a name="l00333"></a>00333                 static <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#ebd0b9a8e57334a721adb281ca4e610d" title="Norma vektoru.">getUnitVector</a>(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *);
<a name="l00334"></a>00334                 
<a name="l00336"></a>00336 
<a name="l00339"></a>00339                 <a class="code" href="classtoolTransformation.html" title="Transformace nástroje.">toolTransformation</a>();
<a name="l00340"></a>00340                 
<a name="l00342"></a>00342 
<a name="l00350"></a>00350                 <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#3b080456010bab0e9b9fb4da6c5bd01e" title="Nastaví parametr nástroje a výšku.">setParam</a>(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>);
<a name="l00352"></a>00352 
<a name="l00356"></a>00356                 <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#bb638b68e7ad62c99dc21d7e84d66bb4" title="Aplikovat výšku na rychlo posuvy.">setMoves</a>(<span class="keywordtype">bool</span>);
<a name="l00358"></a>00358                 <span class="keywordtype">bool</span> <a class="code" href="classtoolTransformation.html#bfed160611972d2dd26cb13f27103a1b" title="Nastavení aplikace na rychloposuv.">getMoves</a>() const;
<a name="l00360"></a>00360 
<a name="l00365"></a>00365                 <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#443c7a2566d84adde776fc1d2edbb8cd" title="Společný koncový bod.">setCommonPoint</a>(<span class="keywordtype">bool</span>);
<a name="l00367"></a>00367                 <span class="keywordtype">bool</span> <a class="code" href="classtoolTransformation.html#145addbc4b49c005009202ae7480fc27" title="Vrací status společného bodu.">getCommonPoint</a>() const;
<a name="l00369"></a>00369                 <span class="keywordtype">float</span> <a class="code" href="classtoolTransformation.html#c9070bd2234b84638a4e1d79c94e1f32" title="Vrací přírůstek nástroje.">getToolRadius</a>() const;
<a name="l00371"></a>00371                 <span class="keywordtype">float</span> <a class="code" href="classtoolTransformation.html#216a8d76ee2590fd162916de1be0474e" title="Vrací přírůstek výšky.">getDepth</a>() const;
<a name="l00372"></a>00372                 
<a name="l00374"></a>00374 
<a name="l00380"></a>00380                 gObject &amp;<a class="code" href="classtoolTransformation.html#d6c270f8c172a3fa7b32ab75baccb1d0" title="Aplikuje transformace na objekt.">apply</a>(gObject &amp;) throw(algorithmError);
<a name="l00382"></a>00382 
<a name="l00388"></a>00388                 gObject &amp;<a class="code" href="classtoolTransformation.html#d6c270f8c172a3fa7b32ab75baccb1d0" title="Aplikuje transformace na objekt.">apply</a>(<a class="code" href="classgObjectContainer.html" title="Kontejner bloků.">gObjectContainer</a> &amp;) throw(algorithmError);
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 };
<a name="l00391"></a>00391 
<a name="l00392"></a>00392 class morphTransformation: public <a class="code" href="classtransformation.html" title="Rozšiřuje zakladní matici o transformace.">transformation</a>{
<a name="l00393"></a>00393         
<a name="l00394"></a>00394         <span class="keyword">public</span>:
<a name="l00395"></a>00395                 <span class="keyword">class </span>morphError: <span class="keyword">public</span> <a class="code" href="classtoolTransformation.html" title="Transformace nástroje.">toolTransformation</a>::algorithmError{};
<a name="l00396"></a>00396                 
<a name="l00397"></a>00397                 <span class="keyword">enum</span> morphType{DISTANCE, MOVE};
<a name="l00398"></a>00398         
<a name="l00399"></a>00399         <span class="keyword">private</span>:
<a name="l00400"></a>00400                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> GAP = 0.001;
<a name="l00401"></a>00401         
<a name="l00402"></a>00402                 <span class="keywordtype">float</span> distance;
<a name="l00403"></a>00403                 <span class="keywordtype">float</span> point[2];
<a name="l00404"></a>00404                 gObject *object;
<a name="l00405"></a>00405                 gTypeGo *go;
<a name="l00406"></a>00406                 gObject::iterator iterPrev, iter, iterNext;
<a name="l00407"></a>00407                 morphType type;
<a name="l00408"></a>00408                 <span class="keywordtype">bool</span> next, commonPoint;
<a name="l00409"></a>00409                 std::vector&lt;gTypeGo *&gt; group;
<a name="l00410"></a>00410                 
<a name="l00411"></a>00411                 <span class="keywordtype">void</span> movePrev();
<a name="l00412"></a>00412                 <span class="keywordtype">void</span> moveNext();
<a name="l00413"></a>00413                 gObject::iterator getPrev();
<a name="l00414"></a>00414                 gObject::iterator getNext();
<a name="l00415"></a>00415                 <span class="keywordtype">void</span> interpolPoint(<span class="keywordtype">float</span> *, <span class="keywordtype">float</span> *, <span class="keywordtype">int</span>);
<a name="l00416"></a>00416                 <span class="keywordtype">void</span> assignVector(<span class="keywordtype">float</span> *);
<a name="l00417"></a>00417                 
<a name="l00418"></a>00418                 <span class="keywordtype">bool</span> isLinear(gTypeGo &amp;) <span class="keyword">const</span>;
<a name="l00419"></a>00419                 <span class="keywordtype">bool</span> isArc(gTypeGo &amp;) <span class="keyword">const</span>;
<a name="l00420"></a>00420                 <span class="keywordtype">void</span> transformDistance() throw(morphError);
<a name="l00421"></a>00421                 <span class="keywordtype">void</span> transformMove() throw(morphError);
<a name="l00422"></a>00422                 
<a name="l00423"></a>00423         public:
<a name="l00424"></a>00424                 morphTransformation();
<a name="l00425"></a>00425                 
<a name="l00426"></a>00426                 <span class="keywordtype">void</span> setType(morphType);
<a name="l00427"></a>00427                 <span class="keywordtype">void</span> setDistance(<span class="keywordtype">float</span>);
<a name="l00428"></a>00428                 <span class="keywordtype">void</span> setMove(<span class="keywordtype">float</span>, <span class="keywordtype">float</span>);
<a name="l00429"></a>00429                 <span class="keywordtype">void</span> setNext(<span class="keywordtype">bool</span>);
<a name="l00430"></a>00430                 <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#443c7a2566d84adde776fc1d2edbb8cd" title="Společný koncový bod.">setCommonPoint</a>(<span class="keywordtype">bool</span>);
<a name="l00431"></a>00431                 
<a name="l00432"></a>00432                 <span class="keywordtype">bool</span> isCommonPoint() const;
<a name="l00433"></a>00433                 morphType getType() const;
<a name="l00434"></a>00434                 <span class="keywordtype">bool</span> isNext() const;
<a name="l00435"></a>00435                 <span class="keywordtype">float</span> getDistance() const;
<a name="l00436"></a>00436                 <span class="keywordtype">void</span> getPoint(<span class="keywordtype">float</span> *) const;
<a name="l00437"></a>00437                 
<a name="l00438"></a>00438                 <span class="keywordtype">void</span> <a class="code" href="classtoolTransformation.html#d6c270f8c172a3fa7b32ab75baccb1d0" title="Aplikuje transformace na objekt.">apply</a>(gObject *, gTypeGo *) throw(morphError);
<a name="l00439"></a>00439 
<a name="l00440"></a>00440 };
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generováno Tue Mar 2 10:34:16 2010 pro projekt Bakalarka programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
